﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.Framework;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.DataSourcesGDB;
using BesAsm.Framework.ArcGisUtilities;

namespace BesAsm.Emgaats.Core
{
  /// <summary>
  /// A class that contains an ArcGIS FeatureLayer and provides additional
  /// Emgaats functionality such as the LibraryItem type and helper ArcGIS methods
  /// </summary>
  public class EmgaatsLayer : FeatureLayerDecorator
  {
    private LibraryItem _libraryItem;    
    private ArcGisUtils _arcUtils;

    public static implicit operator FeatureLayerClass(EmgaatsLayer layer)
    {
      return layer._layer as FeatureLayerClass;
    }

    public EmgaatsLayer(LibraryItem libraryItem, IFeatureLayer featureLayer)
      : base(featureLayer)
    {
      _libraryItem = libraryItem;      
      _arcUtils = new ArcGisUtils(ArcMap.Application);
    }

    public LibraryItem LibraryItem
    {
      get { return _libraryItem; }
    }

    

  }
}
